export interface Product {
  _id: string
  pName: string
  logoUrl: string
  createDate: Date
  updateDate: Date
}

export interface ProductFormData {
  pName: string
  logoUrl: string
  _id?: string
}

export interface PageInfo {
  pageNum: number
  pageLimit: number
}

export interface DeleteProductResponse {
  code: number
  ok: boolean
  message: string
  data: {
    acknowledged: boolean
    deletedCount: number
  }
}

export interface ProductResponse {
  code: number
  ok: boolean
  message: string
  data: Product
}

export interface ProductResponseData {
  data: {
    productList: Product[] | []
    total: number
  }
  code: number
  ok: boolean
  message: string
}
